package com.jinly.ryder.database.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jinly.ryder.common.dao.entity.BaseDO;
import com.jinly.ryder.database.service.model.SqlTaskState;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sql_task_item")
public class SqlTaskItemDO extends BaseDO {

    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField(value = "task_id")
    private Long taskId;

    @TableField(value = "table_name")
    private String tableName;

    /**
     * sql 脚步
     */
    @TableField(value = "sql_script")
    private String sqlScript;


    @TableField(value = "task_state")
    private SqlTaskState state;

    @TableField(value = "result_msg")
    private String resultMsg;
}
